package org.poc.camel;

import org.apache.camel.spring.Main;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class Runner {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		Main camelMain = new Main();	
		
		FileSystemXmlApplicationContext appContext = new FileSystemXmlApplicationContext();
		appContext.setConfigLocation("src/main/resources/META-INF/spring/vm-*.xml");
		appContext.refresh();
		camelMain.setApplicationContext(appContext);
		//camelMain.setApplicationContextUri( "META-INF/spring");		
		camelMain.run();		

	}

}
